/*
 * XML Type:  InvestmentSell
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.InvestmentSell
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML InvestmentSell(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class InvestmentSellImpl extends net.ofx.types.x2003.x04.impl.AbstractInvestmentTransactionImpl implements net.ofx.types.x2003.x04.InvestmentSell
{
    
    public InvestmentSellImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SECID$0 = 
        new javax.xml.namespace.QName("", "SECID");
    private static final javax.xml.namespace.QName UNITS$2 = 
        new javax.xml.namespace.QName("", "UNITS");
    private static final javax.xml.namespace.QName UNITPRICE$4 = 
        new javax.xml.namespace.QName("", "UNITPRICE");
    private static final javax.xml.namespace.QName MARKDOWN$6 = 
        new javax.xml.namespace.QName("", "MARKDOWN");
    private static final javax.xml.namespace.QName COMMISSION$8 = 
        new javax.xml.namespace.QName("", "COMMISSION");
    private static final javax.xml.namespace.QName TAXES$10 = 
        new javax.xml.namespace.QName("", "TAXES");
    private static final javax.xml.namespace.QName FEES$12 = 
        new javax.xml.namespace.QName("", "FEES");
    private static final javax.xml.namespace.QName LOAD$14 = 
        new javax.xml.namespace.QName("", "LOAD");
    private static final javax.xml.namespace.QName WITHHOLDING$16 = 
        new javax.xml.namespace.QName("", "WITHHOLDING");
    private static final javax.xml.namespace.QName TAXEXEMPT$18 = 
        new javax.xml.namespace.QName("", "TAXEXEMPT");
    private static final javax.xml.namespace.QName TOTAL$20 = 
        new javax.xml.namespace.QName("", "TOTAL");
    private static final javax.xml.namespace.QName GAIN$22 = 
        new javax.xml.namespace.QName("", "GAIN");
    private static final javax.xml.namespace.QName CURRENCY$24 = 
        new javax.xml.namespace.QName("", "CURRENCY");
    private static final javax.xml.namespace.QName ORIGCURRENCY$26 = 
        new javax.xml.namespace.QName("", "ORIGCURRENCY");
    private static final javax.xml.namespace.QName SUBACCTSEC$28 = 
        new javax.xml.namespace.QName("", "SUBACCTSEC");
    private static final javax.xml.namespace.QName SUBACCTFUND$30 = 
        new javax.xml.namespace.QName("", "SUBACCTFUND");
    private static final javax.xml.namespace.QName LOANID$32 = 
        new javax.xml.namespace.QName("", "LOANID");
    private static final javax.xml.namespace.QName STATEWITHHOLDING$34 = 
        new javax.xml.namespace.QName("", "STATEWITHHOLDING");
    private static final javax.xml.namespace.QName PENALTY$36 = 
        new javax.xml.namespace.QName("", "PENALTY");
    private static final javax.xml.namespace.QName INV401KSOURCE$38 = 
        new javax.xml.namespace.QName("", "INV401KSOURCE");
    
    
    /**
     * Gets the "SECID" element
     */
    public net.ofx.types.x2003.x04.SecurityId getSECID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityId target = null;
            target = (net.ofx.types.x2003.x04.SecurityId)get_store().find_element_user(SECID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "SECID" element
     */
    public void setSECID(net.ofx.types.x2003.x04.SecurityId secid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityId target = null;
            target = (net.ofx.types.x2003.x04.SecurityId)get_store().find_element_user(SECID$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.SecurityId)get_store().add_element_user(SECID$0);
            }
            target.set(secid);
        }
    }
    
    /**
     * Appends and returns a new empty "SECID" element
     */
    public net.ofx.types.x2003.x04.SecurityId addNewSECID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SecurityId target = null;
            target = (net.ofx.types.x2003.x04.SecurityId)get_store().add_element_user(SECID$0);
            return target;
        }
    }
    
    /**
     * Gets the "UNITS" element
     */
    public java.lang.String getUNITS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNITS$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "UNITS" element
     */
    public net.ofx.types.x2003.x04.QuantityType xgetUNITS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.QuantityType target = null;
            target = (net.ofx.types.x2003.x04.QuantityType)get_store().find_element_user(UNITS$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "UNITS" element
     */
    public void setUNITS(java.lang.String units)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNITS$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(UNITS$2);
            }
            target.setStringValue(units);
        }
    }
    
    /**
     * Sets (as xml) the "UNITS" element
     */
    public void xsetUNITS(net.ofx.types.x2003.x04.QuantityType units)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.QuantityType target = null;
            target = (net.ofx.types.x2003.x04.QuantityType)get_store().find_element_user(UNITS$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.QuantityType)get_store().add_element_user(UNITS$2);
            }
            target.set(units);
        }
    }
    
    /**
     * Gets the "UNITPRICE" element
     */
    public java.lang.String getUNITPRICE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNITPRICE$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "UNITPRICE" element
     */
    public net.ofx.types.x2003.x04.UnitPriceType xgetUNITPRICE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.UnitPriceType target = null;
            target = (net.ofx.types.x2003.x04.UnitPriceType)get_store().find_element_user(UNITPRICE$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "UNITPRICE" element
     */
    public void setUNITPRICE(java.lang.String unitprice)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNITPRICE$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(UNITPRICE$4);
            }
            target.setStringValue(unitprice);
        }
    }
    
    /**
     * Sets (as xml) the "UNITPRICE" element
     */
    public void xsetUNITPRICE(net.ofx.types.x2003.x04.UnitPriceType unitprice)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.UnitPriceType target = null;
            target = (net.ofx.types.x2003.x04.UnitPriceType)get_store().find_element_user(UNITPRICE$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.UnitPriceType)get_store().add_element_user(UNITPRICE$4);
            }
            target.set(unitprice);
        }
    }
    
    /**
     * Gets the "MARKDOWN" element
     */
    public java.lang.String getMARKDOWN()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MARKDOWN$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "MARKDOWN" element
     */
    public net.ofx.types.x2003.x04.UnitPriceType xgetMARKDOWN()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.UnitPriceType target = null;
            target = (net.ofx.types.x2003.x04.UnitPriceType)get_store().find_element_user(MARKDOWN$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "MARKDOWN" element
     */
    public boolean isSetMARKDOWN()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(MARKDOWN$6) != 0;
        }
    }
    
    /**
     * Sets the "MARKDOWN" element
     */
    public void setMARKDOWN(java.lang.String markdown)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MARKDOWN$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MARKDOWN$6);
            }
            target.setStringValue(markdown);
        }
    }
    
    /**
     * Sets (as xml) the "MARKDOWN" element
     */
    public void xsetMARKDOWN(net.ofx.types.x2003.x04.UnitPriceType markdown)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.UnitPriceType target = null;
            target = (net.ofx.types.x2003.x04.UnitPriceType)get_store().find_element_user(MARKDOWN$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.UnitPriceType)get_store().add_element_user(MARKDOWN$6);
            }
            target.set(markdown);
        }
    }
    
    /**
     * Unsets the "MARKDOWN" element
     */
    public void unsetMARKDOWN()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(MARKDOWN$6, 0);
        }
    }
    
    /**
     * Gets the "COMMISSION" element
     */
    public java.lang.String getCOMMISSION()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COMMISSION$8, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "COMMISSION" element
     */
    public net.ofx.types.x2003.x04.PositiveAmountType xgetCOMMISSION()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(COMMISSION$8, 0);
            return target;
        }
    }
    
    /**
     * True if has "COMMISSION" element
     */
    public boolean isSetCOMMISSION()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(COMMISSION$8) != 0;
        }
    }
    
    /**
     * Sets the "COMMISSION" element
     */
    public void setCOMMISSION(java.lang.String commission)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COMMISSION$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(COMMISSION$8);
            }
            target.setStringValue(commission);
        }
    }
    
    /**
     * Sets (as xml) the "COMMISSION" element
     */
    public void xsetCOMMISSION(net.ofx.types.x2003.x04.PositiveAmountType commission)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(COMMISSION$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().add_element_user(COMMISSION$8);
            }
            target.set(commission);
        }
    }
    
    /**
     * Unsets the "COMMISSION" element
     */
    public void unsetCOMMISSION()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(COMMISSION$8, 0);
        }
    }
    
    /**
     * Gets the "TAXES" element
     */
    public java.lang.String getTAXES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TAXES$10, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "TAXES" element
     */
    public net.ofx.types.x2003.x04.PositiveAmountType xgetTAXES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(TAXES$10, 0);
            return target;
        }
    }
    
    /**
     * True if has "TAXES" element
     */
    public boolean isSetTAXES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TAXES$10) != 0;
        }
    }
    
    /**
     * Sets the "TAXES" element
     */
    public void setTAXES(java.lang.String taxes)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TAXES$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TAXES$10);
            }
            target.setStringValue(taxes);
        }
    }
    
    /**
     * Sets (as xml) the "TAXES" element
     */
    public void xsetTAXES(net.ofx.types.x2003.x04.PositiveAmountType taxes)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(TAXES$10, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().add_element_user(TAXES$10);
            }
            target.set(taxes);
        }
    }
    
    /**
     * Unsets the "TAXES" element
     */
    public void unsetTAXES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TAXES$10, 0);
        }
    }
    
    /**
     * Gets the "FEES" element
     */
    public java.lang.String getFEES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FEES$12, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "FEES" element
     */
    public net.ofx.types.x2003.x04.PositiveAmountType xgetFEES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(FEES$12, 0);
            return target;
        }
    }
    
    /**
     * True if has "FEES" element
     */
    public boolean isSetFEES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FEES$12) != 0;
        }
    }
    
    /**
     * Sets the "FEES" element
     */
    public void setFEES(java.lang.String fees)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FEES$12, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FEES$12);
            }
            target.setStringValue(fees);
        }
    }
    
    /**
     * Sets (as xml) the "FEES" element
     */
    public void xsetFEES(net.ofx.types.x2003.x04.PositiveAmountType fees)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(FEES$12, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().add_element_user(FEES$12);
            }
            target.set(fees);
        }
    }
    
    /**
     * Unsets the "FEES" element
     */
    public void unsetFEES()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FEES$12, 0);
        }
    }
    
    /**
     * Gets the "LOAD" element
     */
    public java.lang.String getLOAD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOAD$14, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "LOAD" element
     */
    public net.ofx.types.x2003.x04.PositiveAmountType xgetLOAD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(LOAD$14, 0);
            return target;
        }
    }
    
    /**
     * True if has "LOAD" element
     */
    public boolean isSetLOAD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LOAD$14) != 0;
        }
    }
    
    /**
     * Sets the "LOAD" element
     */
    public void setLOAD(java.lang.String load)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOAD$14, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LOAD$14);
            }
            target.setStringValue(load);
        }
    }
    
    /**
     * Sets (as xml) the "LOAD" element
     */
    public void xsetLOAD(net.ofx.types.x2003.x04.PositiveAmountType load)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(LOAD$14, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().add_element_user(LOAD$14);
            }
            target.set(load);
        }
    }
    
    /**
     * Unsets the "LOAD" element
     */
    public void unsetLOAD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LOAD$14, 0);
        }
    }
    
    /**
     * Gets the "WITHHOLDING" element
     */
    public java.lang.String getWITHHOLDING()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(WITHHOLDING$16, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "WITHHOLDING" element
     */
    public net.ofx.types.x2003.x04.PositiveAmountType xgetWITHHOLDING()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(WITHHOLDING$16, 0);
            return target;
        }
    }
    
    /**
     * True if has "WITHHOLDING" element
     */
    public boolean isSetWITHHOLDING()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(WITHHOLDING$16) != 0;
        }
    }
    
    /**
     * Sets the "WITHHOLDING" element
     */
    public void setWITHHOLDING(java.lang.String withholding)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(WITHHOLDING$16, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(WITHHOLDING$16);
            }
            target.setStringValue(withholding);
        }
    }
    
    /**
     * Sets (as xml) the "WITHHOLDING" element
     */
    public void xsetWITHHOLDING(net.ofx.types.x2003.x04.PositiveAmountType withholding)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(WITHHOLDING$16, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().add_element_user(WITHHOLDING$16);
            }
            target.set(withholding);
        }
    }
    
    /**
     * Unsets the "WITHHOLDING" element
     */
    public void unsetWITHHOLDING()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(WITHHOLDING$16, 0);
        }
    }
    
    /**
     * Gets the "TAXEXEMPT" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getTAXEXEMPT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TAXEXEMPT$18, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "TAXEXEMPT" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetTAXEXEMPT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(TAXEXEMPT$18, 0);
            return target;
        }
    }
    
    /**
     * True if has "TAXEXEMPT" element
     */
    public boolean isSetTAXEXEMPT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TAXEXEMPT$18) != 0;
        }
    }
    
    /**
     * Sets the "TAXEXEMPT" element
     */
    public void setTAXEXEMPT(net.ofx.types.x2003.x04.BooleanType.Enum taxexempt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TAXEXEMPT$18, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TAXEXEMPT$18);
            }
            target.setEnumValue(taxexempt);
        }
    }
    
    /**
     * Sets (as xml) the "TAXEXEMPT" element
     */
    public void xsetTAXEXEMPT(net.ofx.types.x2003.x04.BooleanType taxexempt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(TAXEXEMPT$18, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(TAXEXEMPT$18);
            }
            target.set(taxexempt);
        }
    }
    
    /**
     * Unsets the "TAXEXEMPT" element
     */
    public void unsetTAXEXEMPT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TAXEXEMPT$18, 0);
        }
    }
    
    /**
     * Gets the "TOTAL" element
     */
    public java.lang.String getTOTAL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TOTAL$20, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "TOTAL" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetTOTAL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(TOTAL$20, 0);
            return target;
        }
    }
    
    /**
     * Sets the "TOTAL" element
     */
    public void setTOTAL(java.lang.String total)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TOTAL$20, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TOTAL$20);
            }
            target.setStringValue(total);
        }
    }
    
    /**
     * Sets (as xml) the "TOTAL" element
     */
    public void xsetTOTAL(net.ofx.types.x2003.x04.AmountType total)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(TOTAL$20, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(TOTAL$20);
            }
            target.set(total);
        }
    }
    
    /**
     * Gets the "GAIN" element
     */
    public java.lang.String getGAIN()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GAIN$22, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "GAIN" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetGAIN()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(GAIN$22, 0);
            return target;
        }
    }
    
    /**
     * True if has "GAIN" element
     */
    public boolean isSetGAIN()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(GAIN$22) != 0;
        }
    }
    
    /**
     * Sets the "GAIN" element
     */
    public void setGAIN(java.lang.String gain)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GAIN$22, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(GAIN$22);
            }
            target.setStringValue(gain);
        }
    }
    
    /**
     * Sets (as xml) the "GAIN" element
     */
    public void xsetGAIN(net.ofx.types.x2003.x04.AmountType gain)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(GAIN$22, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(GAIN$22);
            }
            target.set(gain);
        }
    }
    
    /**
     * Unsets the "GAIN" element
     */
    public void unsetGAIN()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(GAIN$22, 0);
        }
    }
    
    /**
     * Gets the "CURRENCY" element
     */
    public net.ofx.types.x2003.x04.Currency getCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().find_element_user(CURRENCY$24, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "CURRENCY" element
     */
    public boolean isSetCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CURRENCY$24) != 0;
        }
    }
    
    /**
     * Sets the "CURRENCY" element
     */
    public void setCURRENCY(net.ofx.types.x2003.x04.Currency currency)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().find_element_user(CURRENCY$24, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.Currency)get_store().add_element_user(CURRENCY$24);
            }
            target.set(currency);
        }
    }
    
    /**
     * Appends and returns a new empty "CURRENCY" element
     */
    public net.ofx.types.x2003.x04.Currency addNewCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().add_element_user(CURRENCY$24);
            return target;
        }
    }
    
    /**
     * Unsets the "CURRENCY" element
     */
    public void unsetCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CURRENCY$24, 0);
        }
    }
    
    /**
     * Gets the "ORIGCURRENCY" element
     */
    public net.ofx.types.x2003.x04.Currency getORIGCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().find_element_user(ORIGCURRENCY$26, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "ORIGCURRENCY" element
     */
    public boolean isSetORIGCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ORIGCURRENCY$26) != 0;
        }
    }
    
    /**
     * Sets the "ORIGCURRENCY" element
     */
    public void setORIGCURRENCY(net.ofx.types.x2003.x04.Currency origcurrency)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().find_element_user(ORIGCURRENCY$26, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.Currency)get_store().add_element_user(ORIGCURRENCY$26);
            }
            target.set(origcurrency);
        }
    }
    
    /**
     * Appends and returns a new empty "ORIGCURRENCY" element
     */
    public net.ofx.types.x2003.x04.Currency addNewORIGCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Currency target = null;
            target = (net.ofx.types.x2003.x04.Currency)get_store().add_element_user(ORIGCURRENCY$26);
            return target;
        }
    }
    
    /**
     * Unsets the "ORIGCURRENCY" element
     */
    public void unsetORIGCURRENCY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ORIGCURRENCY$26, 0);
        }
    }
    
    /**
     * Gets the "SUBACCTSEC" element
     */
    public net.ofx.types.x2003.x04.SubAccountEnum.Enum getSUBACCTSEC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SUBACCTSEC$28, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.SubAccountEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "SUBACCTSEC" element
     */
    public net.ofx.types.x2003.x04.SubAccountEnum xgetSUBACCTSEC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SubAccountEnum target = null;
            target = (net.ofx.types.x2003.x04.SubAccountEnum)get_store().find_element_user(SUBACCTSEC$28, 0);
            return target;
        }
    }
    
    /**
     * Sets the "SUBACCTSEC" element
     */
    public void setSUBACCTSEC(net.ofx.types.x2003.x04.SubAccountEnum.Enum subacctsec)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SUBACCTSEC$28, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SUBACCTSEC$28);
            }
            target.setEnumValue(subacctsec);
        }
    }
    
    /**
     * Sets (as xml) the "SUBACCTSEC" element
     */
    public void xsetSUBACCTSEC(net.ofx.types.x2003.x04.SubAccountEnum subacctsec)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SubAccountEnum target = null;
            target = (net.ofx.types.x2003.x04.SubAccountEnum)get_store().find_element_user(SUBACCTSEC$28, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.SubAccountEnum)get_store().add_element_user(SUBACCTSEC$28);
            }
            target.set(subacctsec);
        }
    }
    
    /**
     * Gets the "SUBACCTFUND" element
     */
    public net.ofx.types.x2003.x04.SubAccountEnum.Enum getSUBACCTFUND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SUBACCTFUND$30, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.SubAccountEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "SUBACCTFUND" element
     */
    public net.ofx.types.x2003.x04.SubAccountEnum xgetSUBACCTFUND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SubAccountEnum target = null;
            target = (net.ofx.types.x2003.x04.SubAccountEnum)get_store().find_element_user(SUBACCTFUND$30, 0);
            return target;
        }
    }
    
    /**
     * Sets the "SUBACCTFUND" element
     */
    public void setSUBACCTFUND(net.ofx.types.x2003.x04.SubAccountEnum.Enum subacctfund)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SUBACCTFUND$30, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SUBACCTFUND$30);
            }
            target.setEnumValue(subacctfund);
        }
    }
    
    /**
     * Sets (as xml) the "SUBACCTFUND" element
     */
    public void xsetSUBACCTFUND(net.ofx.types.x2003.x04.SubAccountEnum subacctfund)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SubAccountEnum target = null;
            target = (net.ofx.types.x2003.x04.SubAccountEnum)get_store().find_element_user(SUBACCTFUND$30, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.SubAccountEnum)get_store().add_element_user(SUBACCTFUND$30);
            }
            target.set(subacctfund);
        }
    }
    
    /**
     * Gets the "LOANID" element
     */
    public java.lang.String getLOANID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOANID$32, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "LOANID" element
     */
    public net.ofx.types.x2003.x04.LoanIdType xgetLOANID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.LoanIdType target = null;
            target = (net.ofx.types.x2003.x04.LoanIdType)get_store().find_element_user(LOANID$32, 0);
            return target;
        }
    }
    
    /**
     * True if has "LOANID" element
     */
    public boolean isSetLOANID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LOANID$32) != 0;
        }
    }
    
    /**
     * Sets the "LOANID" element
     */
    public void setLOANID(java.lang.String loanid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOANID$32, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LOANID$32);
            }
            target.setStringValue(loanid);
        }
    }
    
    /**
     * Sets (as xml) the "LOANID" element
     */
    public void xsetLOANID(net.ofx.types.x2003.x04.LoanIdType loanid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.LoanIdType target = null;
            target = (net.ofx.types.x2003.x04.LoanIdType)get_store().find_element_user(LOANID$32, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.LoanIdType)get_store().add_element_user(LOANID$32);
            }
            target.set(loanid);
        }
    }
    
    /**
     * Unsets the "LOANID" element
     */
    public void unsetLOANID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LOANID$32, 0);
        }
    }
    
    /**
     * Gets the "STATEWITHHOLDING" element
     */
    public java.lang.String getSTATEWITHHOLDING()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATEWITHHOLDING$34, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "STATEWITHHOLDING" element
     */
    public net.ofx.types.x2003.x04.PositiveAmountType xgetSTATEWITHHOLDING()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(STATEWITHHOLDING$34, 0);
            return target;
        }
    }
    
    /**
     * True if has "STATEWITHHOLDING" element
     */
    public boolean isSetSTATEWITHHOLDING()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(STATEWITHHOLDING$34) != 0;
        }
    }
    
    /**
     * Sets the "STATEWITHHOLDING" element
     */
    public void setSTATEWITHHOLDING(java.lang.String statewithholding)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATEWITHHOLDING$34, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATEWITHHOLDING$34);
            }
            target.setStringValue(statewithholding);
        }
    }
    
    /**
     * Sets (as xml) the "STATEWITHHOLDING" element
     */
    public void xsetSTATEWITHHOLDING(net.ofx.types.x2003.x04.PositiveAmountType statewithholding)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(STATEWITHHOLDING$34, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().add_element_user(STATEWITHHOLDING$34);
            }
            target.set(statewithholding);
        }
    }
    
    /**
     * Unsets the "STATEWITHHOLDING" element
     */
    public void unsetSTATEWITHHOLDING()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(STATEWITHHOLDING$34, 0);
        }
    }
    
    /**
     * Gets the "PENALTY" element
     */
    public java.lang.String getPENALTY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PENALTY$36, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "PENALTY" element
     */
    public net.ofx.types.x2003.x04.PositiveAmountType xgetPENALTY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(PENALTY$36, 0);
            return target;
        }
    }
    
    /**
     * True if has "PENALTY" element
     */
    public boolean isSetPENALTY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PENALTY$36) != 0;
        }
    }
    
    /**
     * Sets the "PENALTY" element
     */
    public void setPENALTY(java.lang.String penalty)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PENALTY$36, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PENALTY$36);
            }
            target.setStringValue(penalty);
        }
    }
    
    /**
     * Sets (as xml) the "PENALTY" element
     */
    public void xsetPENALTY(net.ofx.types.x2003.x04.PositiveAmountType penalty)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PositiveAmountType target = null;
            target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().find_element_user(PENALTY$36, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PositiveAmountType)get_store().add_element_user(PENALTY$36);
            }
            target.set(penalty);
        }
    }
    
    /**
     * Unsets the "PENALTY" element
     */
    public void unsetPENALTY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PENALTY$36, 0);
        }
    }
    
    /**
     * Gets the "INV401KSOURCE" element
     */
    public net.ofx.types.x2003.x04.Investment401KSourceEnum.Enum getINV401KSOURCE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INV401KSOURCE$38, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.Investment401KSourceEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "INV401KSOURCE" element
     */
    public net.ofx.types.x2003.x04.Investment401KSourceEnum xgetINV401KSOURCE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Investment401KSourceEnum target = null;
            target = (net.ofx.types.x2003.x04.Investment401KSourceEnum)get_store().find_element_user(INV401KSOURCE$38, 0);
            return target;
        }
    }
    
    /**
     * True if has "INV401KSOURCE" element
     */
    public boolean isSetINV401KSOURCE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INV401KSOURCE$38) != 0;
        }
    }
    
    /**
     * Sets the "INV401KSOURCE" element
     */
    public void setINV401KSOURCE(net.ofx.types.x2003.x04.Investment401KSourceEnum.Enum inv401KSOURCE)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INV401KSOURCE$38, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INV401KSOURCE$38);
            }
            target.setEnumValue(inv401KSOURCE);
        }
    }
    
    /**
     * Sets (as xml) the "INV401KSOURCE" element
     */
    public void xsetINV401KSOURCE(net.ofx.types.x2003.x04.Investment401KSourceEnum inv401KSOURCE)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.Investment401KSourceEnum target = null;
            target = (net.ofx.types.x2003.x04.Investment401KSourceEnum)get_store().find_element_user(INV401KSOURCE$38, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.Investment401KSourceEnum)get_store().add_element_user(INV401KSOURCE$38);
            }
            target.set(inv401KSOURCE);
        }
    }
    
    /**
     * Unsets the "INV401KSOURCE" element
     */
    public void unsetINV401KSOURCE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INV401KSOURCE$38, 0);
        }
    }
}
